package com.groupbuying.storeinternal.dao;

import com.groupbuying.storeinternal.domain.StoreShopDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 商户店铺管理
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-24 10:31:50
 */
@Mapper
@Repository
public interface StoreShopDao {

	StoreShopDO get(String uuid);
	
	List<StoreShopDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreShopDO storeShop);
	
	int update(StoreShopDO storeShop);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);


	/**
	 * 根据geohash 获取门店
	 * @param map
	 * @return
	 */
	List<StoreShopDO> queryListByGeoHash(Map<String, Object> map);

	/**
	 * 获取商店
	 * @param storeId
	 * @return
	 */
	StoreShopDO getStoreShop(String storeId);

	/**
	 * 根据品类名或者商店名称搜索
	 * @param map
	 * @return
	 */
    List<StoreShopDO> searchShopListByCategoryOrStoreName(Map map);
	/**
	 * 查找推荐门店列表
	 * @param params
	 * @return
	 */
    List<StoreShopDO> getRecommendStoreList(Map<String, Object> params);
}
